#include <iostream>
using namespace std;
#include "CircleClass.h"

const double Circle::pi = 3.1415926;
Circle::Circle(int xValue, int yValue, double radiusValue)
{
	x = xValue;
	y = yValue;
	setRadius(radiusValue);
}
void Circle::setX(int xValue)
{
	x = xValue;
}
int Circle::getX() const
{
	return x;
}
void Circle::setY(int yValue)
{
	y = yValue;
}
int Circle::getY() const
{
	return y;
}
void Circle::setRadius(double value)
{
	radius = (value < 0.0) ? 0.0 : value; 
}
double Circle::getRadius() const
{
	return radius;
}
double Circle::getDiameter() const
{
	return (radius * 2);
}
double Circle::getCircumference() const
{
	return (pi * getDiameter());
}
double Circle::getArea() const
{
	return (pi * radius * radius);
}
void Circle::print() const
{
	cout << "Centern" << "[" << x << "," << y << "]" << " Radius = " << radius << "\n";
}
